﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Tuzzit_Modele
{
    public class ModeleProfil
    {
        //variables
        public String Project_id { get; set; }
        public bool Favorite { get; set; }
        public String Name { get; set; }
        public String Description { get; set; }
        public int Visibility { get; set; }
        public String Map_lat { get; set; }
        public String Map_long { get; set; }
        public String Project_hashcode { get; set; }
        public String Project_path { get; set; }
        public bool Has_warning { get; set; }
        public String Project_img { get; set; }
        public int Mail_count { get; set; }

        public String Map_Location { get; set; }

        //Constructeur
        public ModeleProfil(String project_id, bool favorite, String name, String description, int visibility, String map_lat, String map_long, String project_hashcode, String project_path, bool has_warning, String project_img, int mail_count)
        {
            Project_id = project_id;
            Favorite = favorite;
            Name = name;
            Description = description;
            Visibility = visibility;
            Map_lat = map_lat;
            Map_long = map_long;
            Project_hashcode = project_hashcode;
            Project_path = project_path;
            Has_warning = has_warning;
            Project_img = "http://dev.tuzzit.com/" + project_img;
            Mail_count = mail_count;
            Map_Location = map_lat + "," + map_long;
        }

        override
        public String ToString()
        {
            return Name;
        }
        public String GetHash()
        {
            return Project_hashcode;
        }
    }
}
